<?php
/**
 * Created by PhpStorm.
 * User: Administrator
 * Date: 2017/11/13
 * Time: 17:05
 */

namespace App\Http\Middleware;
use Closure;

class UserMiddleware
{
    public function handle($request,Closure $next,$other){
        if($request->get('age')<=200){
            return redirect()->route('login');
        }
        return $next();
    }

}